package com.iplatform.module.privilege.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户操作数据传输对象
 */
@ApiModel()
@Data
public class PriOptDto {

    @ApiModelProperty(value = "optId")
    private String optId;

    @ApiModelProperty(value = "操作名", dataType = "String")
    @NotBlank(message = "操作名不能为空")
    private String optName;

    @ApiModelProperty(value = "操作代码", dataType = "String")
    @NotBlank(message = "操作代码不能为空")
    private String optCode;

    @ApiModelProperty(value = "排序码")
    private Integer sortNum;

    @ApiModelProperty(value = "描述", dataType = "String")
    private String remark;

    @ApiModelProperty(value = "删除标识", dataType="String")
    private Boolean isDeleted;

    @ApiModelProperty(value = "是否启用")
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;
}
